#include "StdAfx.h"
#include <Windows.h>
#include <stdio.h>
#include <stdarg.h>
#include <crtdbg.h>
#include "RPG.h"

#if defined(_DEBUG)
	#pragma comment(linker, "/SUBSYSTEM:Console")
#else
	#pragma comment(linker, "/SUBSYSTEM:Windows")
#endif


int main(void)
{
	WinMain(GetModuleHandle(NULL), NULL, GetCommandLine(), SW_SHOWDEFAULT);
	return 0;

}
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR cmdLine, int cmdShow)
{
	#if defined(DEBUG) | defined(_DEBUG)
		_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
	#endif

	#define LEAK_LINE 135
	//_CrtSetBreakAlloc(LEAK_LINE);
	
	RPG game(hInst);
	game.Run();

	return TRUE;
}
